package com.ruoyi.web.controller.datastatistics;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.PageDomain;
import com.ruoyi.common.core.page.WeChatTableDataInfo;
import com.ruoyi.datastatistics.service.ITerminalsFreezeXbService;
import com.ruoyi.datastatistics.wxentity.WXTerminalsFreezeXb;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 小冻结数据（设备维度）Controller
 *
 * @author ruoyi
 * @date 2023-09-14
 */
@RestController
@RequestMapping("/api/terminalsfreezexb")
public class TerminalsFreezeXbController extends BaseController
{
    @Autowired
    private ITerminalsFreezeXbService terminalsFreezeXbService;



    /**
     * 小表日用量月用量数据
     */
    @GetMapping("/DataAnalysisTerminalsMoreDataList")
    public WeChatTableDataInfo list(@RequestParam(value = "startTime",required = false) String startTime,
                                    @RequestParam(value = "endTime",required = false) String endTime,
                                    @RequestParam(value = "reportType",required = false) String reportType,
                                    @RequestParam(value = "userTerminalId",required = false)String terminalId)
    {
        PageDomain pageDomain = startWeChatPage();
        List<WXTerminalsFreezeXb> list = terminalsFreezeXbService.WxList(startTime,endTime,reportType,terminalId);
        return getWeChatDataTable(list,pageDomain);
    }



}
